﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FXnaInfrastructure
{
    [Serializable]
    public class GeoLat:GeoLongLatBase
    {


        bool _isNorth = true;

        public bool IsNorth
        {
            get { return _isNorth; }
            set { _isNorth = value; }
        }




        public override void SetValueWithString(string str)
        {
            base.SetValueWithString(str);

            if (str.EndsWith("N"))
            {
                this._isNorth = true;


            }

            if (str.EndsWith("S"))
            {

                this._isNorth = false;

            }






        }


        public override string GetValueWithString()
        {
            string str = "";

            if (this._isNorth)
            {
                str = "N";

            }
            else
            {
                str = "S";
            }

           return  this.Value.ToString()+str;

           
        }



       
    }
}
